//
//  NSDictionary+SafeObjectForKey.h
//  RunningKit
//
//  Created by 万亚坤 on 15/5/6.
//  Copyright (c) 2015年 runningkit.me. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSDictionary (SafeObjectForKey)

/**
 *  根据key获取字符串
 *
 *  @param key key
 *
 *  @return key对应的字符串值
 */
- (NSString *)safeStringForKey:(id)key;

/**
 *  根据key获取NSNumber
 *
 *  @param key key
 *
 *  @return key对应的NSNumber
 */
- (NSNumber *)safeNumberForKey:(id)key;

/**
 *  根据key获取Array
 *
 *  @param key key
 *
 *  @return key对应的Array
 */
- (NSArray *)safeArrayForKey:(id)key;

/**
 *  根据key获取NSDictionary
 *
 *  @param key key
 *
 *  @return key对应的NSDictionary
 */
- (NSDictionary *)safeDictionaryForKey:(id)key;

@end
